package it.rap.application.logic.mappers;

import it.rap.applications.persistence.entities.filters.FilterTree;

import java.math.BigDecimal;


public class ReportSum {
	private BigDecimal debito;
	private BigDecimal accredito;
	private FilterTree usedFilters;
	
	public ReportSum(BigDecimal debito, BigDecimal accredito) {
		super();
		this.debito = debito;
		this.accredito = accredito;
	}
	
	public ReportSum(Float debito, Float accredito) {
		super();
		this.debito 	= debito==null?new BigDecimal("0"):new BigDecimal(""+debito);
		this.accredito 	= accredito==null?new BigDecimal("0"):new BigDecimal(""+accredito);
	}

	public BigDecimal getDebito() {
		return debito;
	}

	public void setDebito(BigDecimal debito) {
		this.debito = debito;
	}

	public BigDecimal getAccredito() {
		return accredito;
	}

	public void setAccredito(BigDecimal accredito) {
		this.accredito = accredito;
	}

	public FilterTree getUsedFilters() {
		return usedFilters;
	}

	public void setUsedFilters(FilterTree usedFilters) {
		this.usedFilters = usedFilters;
	}
	
}
